<!DOCTYPE html>
<html>
  <head>
    <title>北斗智慧校园</title>
	
    <meta name="keywords" content="keyword1,keyword2,keyword3">
    <meta name="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="../../../../../css/index.css">
	<script type="text/javascript" src="../../../../../public/libs/jquery/jquery-1.11.1.min.js"></script>
	<script type="text/javascript" src="../../../../../public/libs/undercore.js"></script>
	<script type="text/javascript" src="../../../../../public/libs/jquery/jquery-lhgdialog/lhgdialog.min.js?self=true&skin=idialog"></script>
	<script type="text/javascript" src="../../../../../public/libs/datepicker/WdatePicker.js"></script>
	<script type="text/javascript" src="../../../../../public/js/home-common.js"></script>
	<script type="text/javascript" src="../../../../../public/js/ajax-crud.js"></script>
	<script type="text/javascript" src="../../../../../public/js/config.js"></script>
	<script type="text/javascript" src="../../../../../public/js/tools.js"></script>
	<script type="text/javascript" src="../../../../../public/js/checkkey.js"></script>
	<script type="text/javascript" src="js/attrulemanage.js"></script>
  </head>
  <body style="overflow: hidden;font-family: 微软雅黑;">
	<div class="right-title">
		<div class="title-img2">
			<img src="../../../../../img/xw/stumanage.png" width="100%" height="100%">
		</div>
		<div class="title-text2">分配规则</div>
		<div class="title-model-now">
			<img src="../../../../../img/xw/lim.png" style="margin-top:5px;"/>
			<img src="../../../../../img/xw/lft.png" style="margin-top:9px;"/>
			<div class="model-now-text">校务管理</div>
			<img src="../../../../../img/xw/lft.png" style="margin-top:9px;"/>
			<div class="model-now-text" style="color:#949496;">分配规则</div>
		</div>
	</div>
	<div class="right-content" id="right-tables">
		<div class="content-title">
			<div class="table-logo">
				<img src="../../../../../img/xw/add-li.png" width="100%" height="100%">
			</div>
			<div class="table-title">分配规则</div>
			<div class="table-pages" id="student-page">
			</div>
		</div>
		<div class="data-back-img"></div>
		<div class="content-data-show" id="attence-data-show">
			<div class="add-info" style="height: 84%;min-height: 300px;">
				<div class="att-head-tit">
					考勤规则列表
				</div>
				<div class="att-head-tit">
					学生列表
				</div>
				<div class="att-body-tit">
					<table class="left-rule-table" id="rules-data">
						
					</table>
				</div>
				<div class="att-body-tit" style="width:35%;">
					<table class="left-rule-table" id="stu-data">
					
					</table>
				</div>
				
				<script id="stu-data-template" type="text/template">
					<@_.each(obj, function(data,i) {@>
 						<tr>
							<@if(data.rolecode != $("input[name='rule-checked']:checked").val()){@>
    							<td width="40"><input type="checkbox" value="<@=data.studentcode@>" name="stu-checked"></td>
							<@}else{@>
								<td width="40"><input type="checkbox" checked="checked" value="<@=data.studentcode@>" name="stu-checked"></td>
							<@}@>
							<td width="80"><@=data.name@></td>
							<td width="80"><@=data.studytype@></td>
							<td width="80"><@=data.rolename@></td>
 						</tr>
					<@});@>
				</script>
				<script id="rules-data-template" type="text/template">
					<@_.each(obj, function(data,i) {@>
 						<tr>
    						<td width="40"><input type="radio" name="rule-checked" value="<@=data.code@>"></td>
							<td width="80"><a href="javascript:void(0)" code="<@=data.code@>"><@=subStr(data.name,8)@></a></td>
 						</tr>
					<@});@>
				</script>
			</div>
			<div class="add-stu-bottom">
				<div class="save-btns" id="save-stu-rule">保&nbsp;存</div>
			</div>
		</div>
	</div>
	<iframe src="" name="detail-show" id="detail-show" class="right-content" style="display: none;border: 0px solid #fff"></iframe>
 </body>
</html>
